package com.zjitc.dao;

import com.zjitc.model.User;
import org.apache.ibatis.annotations.Param;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/16 15:53
 * @description:
 */
public interface UserDao {
  int register(User user);

  int checkUser(String username);

  User findByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
  int updateUser(@Param("username") String username, @Param("password")String password, @Param("phone")String phone, @Param("address")String address );

  User findUserById(Integer id);

  User findByUserName(String username);

  void updateUser(User user);


}
